package com.example.demo.designPattern.observer;

import com.google.common.eventbus.Subscribe;

/**
 * @Author: xiatian
 * @CreateTime: 2021/11/5 11:22 上午
 * @Description: 观察者
 */
public class EmailEventListener {
    @Subscribe
    public void handle(NotifyEvent notifyEvent) {
        System.out.println("发送email消息" + notifyEvent.getEmailNo());

    }



}
